package org.example.trainTicketSystem.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.trainTicketSystem.DTO.GetScheduleDTO;
import org.example.trainTicketSystem.entity.TrainSchedule;

import java.util.List;

public interface TrainScheduleService extends IService<TrainSchedule> {

    Page<TrainSchedule> selectTrainSchedule(GetScheduleDTO getScheduleDTO, int page, int size);

    Page<TrainSchedule> selectTrainScheduleByTrainNumber(String trainNumber, int page, int size);

    Page<TrainSchedule> selectAllTrainSchedule(int page, int size);
}
